<?php

namespace app\http\middleware;

use think\facade\Session;

class Check
{
    public function handle($request, \Closure $next)
    {
        if (empty(Session::get('user_info'))) {
            return redirect('tenno/Users/signIn');
        }

        return $next($request);
    }
}
